package com.ld.poetry.aigc.iflycode.laihg;

import com.ld.poetry.aigc.iflycode.laihg.FlyCode;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;

public class UnitTest {

    @Test
    void printFlyCodes_positive() {
        FlyCode printFlyCodes = new FlyCode();
        printFlyCodes.printFlyCodes(5);
    }

    @Test
    void printFlyCodes_negative() {
        FlyCode printFlyCodes = new FlyCode();
        assertThrows(IllegalArgumentException.class, () -> printFlyCodes.printFlyCodes(-1));
    }

    @Test
    void printFlyCodes_null() {
        FlyCode printFlyCodes = new FlyCode();
        assertThrows(NullPointerException.class, () -> printFlyCodes.printFlyCodes(null));
    }

    @Test
    void printFlyCodes_zero() {
        FlyCode printFlyCodes = new FlyCode();
        printFlyCodes.printFlyCodes(0);
    }

    @Test
    void printFlyCodes_largeNumber() {
        FlyCode printFlyCodes = new FlyCode();
        printFlyCodes.printFlyCodes(Integer.MAX_VALUE);
    }
}